<template>
<div class="my-item">
    <div class="my-text-icon">
        <em class="my-icon">
            <i class="iconfont iconcategory"></i>
        </em>
        <div class="my-text">
            <h4 class="my-title">
                {{ data.name }}
                <em class="title-time">时间：{{ data.time }}</em>
                <em class="title-time">{{ data.describe }}</em>
            </h4>
            <div class="service-text-des" v-for="item in data.list" :key="item.id">
                <p>{{ item.txt }}</p>
            </div>
            <p>个人进步：{{ data.progress }}</p>
        </div>
    </div>
</div>
</template>

<script>
export default {
    name: "compList",
    props: {
        data: {
            type: Object,
            default: () => {
                return {
                    name: "qimin霸主有限公司",
                    time: "未来",
                    describe: "梦幻企业",
                    list: [],
                    progress: "飞升上天",
                };
            },
        },
    },
};
</script>

<style lang="less" scoped>
.my-item {
    position: relative;
    top: 0;
    min-height: 1px;
    margin-bottom: 50px;
    box-shadow: 2px 2px 10px #eee;
    background-color: #fdfeff;
    -webkit-box-shadow: 0 1px 2px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px 0px rgba(0, 0, 0, 0.1);
    -webkit-transition: 0.3s all ease-in-out;
    -o-transition: 0.3s all ease-in-out;
    transition: 0.3s all ease-in-out;

    .my-title {
        font-size: 16px;
    }

    &:hover {
        top: -2px;
        -webkit-box-shadow: 0 8px 50px -5px rgba(0, 0, 0, 0.1);
        box-shadow: 0 8px 50px -5px rgba(0, 0, 0, 0.1);
        top: -2px;

        .my-text-icon {
            border-color: rgba(73, 119, 194, 1);
        }

        .my-icon {
            color: #fff;
            background-color: rgba(73, 119, 194, 1);
        }

        .my-title {
            color: rgba(73, 119, 194, 1);
        }
    }

    .title-time {
        display: block;
        margin-top: 10px;
        font-size: 12px;
        font-style: normal;
    }

    .my-text-icon {
        padding: 40px 20px 20px;
        border: 1px solid #f7fafc;
        border-radius: 4px;

        p {
            margin-top: 10px;
        }
    }

    .my-icon {
        left: 0;
        right: 0;
        top: -35px;
        width: 65px;
        height: 65px;
        margin: 0 auto;
        line-height: 66px;
        position: absolute;
        border-radius: 100%;
        background-color: #f7fafc;
        text-align: center;
        cursor: pointer;

        .iconfont {
            font-size: 20px;
        }
    }
}
</style>
